#include <iostream>
#include "Consumer.h"
#include "TaskQueue.h"
using std::cout;
using std::endl;

void Consumer::consume(TaskQueue & que){
    int cnt = 20;
    while(--cnt){
        int num = que.pop();
        cout << "consume number:"<<num<<endl;
    }
}
